app.controller("manualCtrl",function($scope,$state,$http,$ionicLoading,$sce){
    var user_info = JSON.parse(localStorage.getItem("UserInfo"));
    // var getPath = JSON.parse(localStorage.getItem("getPath"));
    //用户数据
    angular.element(document).ready(function () {
        var url = getPath.url+getPath.name+"/app/findManualCont?userId="+user_info.userId;
        $http({
            url: url,
            method: "POST",
            headers:{'Content-Type':'application/x-www-form-urlencoded'}
        }).success(function(data){
                var res = data.resultBean;
                if(data.resultCode==200){
                    $scope.manualText = $sce.trustAsHtml(res);
                }else{
                    $ionicLoading.show({
                        template: data.result,
                        duration:3000
                    });
                }
            })
            .error(function(data){
                $ionicLoading.show({
                    template: data.result,
                    duration:3000
                });
            });
    });
});